using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class usercontrols_ucprofile : System.Web.UI.UserControl
{
    public string fullname;
    public string username;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["ID"] == null)
        { Session["ID"] = ""; }
        if (Session["UserName"] == null)
        { Session["UserName"] = ""; }
        if (Session["Name"] == null)
        { Session["Name"] = ""; }
        if (Session["UserType"] == null)
        { Session["UserType"] = ""; }

        fullname = Session["Name"].ToString();
        username = Session["UserName"].ToString();
    }
    protected void bntlogout_Click(object sender, EventArgs e)
    {
        Session["ID"] = null;
        Session["UserName"] = null;
        Session["Name"] = null;
        Session["UserType"] = null;
        Response.Redirect("Default.aspx");
    }
}
